package com.dlc.beijingrfid.adapter;

import com.dlc.commonlibrary.adapter.BaseRecyclerAdapter;
import com.dlc.beijingrfid.R;
import com.dlc.beijingrfid.net.bean.OrderWashDetailBean;

/**
 * Created by John on 2017/7/24.
 */

public class BuCaoAdapter extends BaseRecyclerAdapter<OrderWashDetailBean.DataBean.SpecGroupBean> {
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_bucao_details;
    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        OrderWashDetailBean.DataBean.SpecGroupBean item = getItem(position);
        holder.setText(R.id.name, item.title);
        holder.setText(R.id.type, item.spec);
        holder.setText(R.id.num, item.count);
    }
}
